package com.deng.service;

import com.deng.mapper.DepartmentMapper;
import com.deng.pojo.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @create 2020-12-24 15:16
 */
@Service
public class DepartmentService {
    @Autowired
    DepartmentMapper departmentMapper;

    public List<Department> getAllDepartments() {
        return departmentMapper.getAllDepartments();
    }

    public Department getDepartmentById(Integer id) {
        return departmentMapper.getDepartmentById(id);
    }
}
